package com.hduong.springcloud;/**
 * Created by dudu on 2020/3/23.
 */

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * <h3>spring-cloud-demo-parent</h3>
 * <p>com.hduong.springcloud.OrderApplicatoin</p>
 *
 * @author : hduong
 * @version : 1.0
 * @date : 2020-03-23 00:07
 **/
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//排除 springboot自带的数据源
@EnableFeignClients//启动 feign接口调用 ： 负载均衡 ： 简化 ribbon的 负载均衡 + restTemplate的调用方式
@EnableDiscoveryClient//服务发现 发现其他服务
public class OrderApplicatoin {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplicatoin.class, args);
    }
}
